//
//  PaymentViewTableViewCell.swift
//  SmartHousekeeper
//
//  Created by 张磊 on 2020/2/22.
//  Copyright © 2020 LS. All rights reserved.
//

import UIKit

class PaymentViewTableViewCell: UITableViewCell {

        lazy var imgLogo : UIImageView = {
                 let value = UIImageView(image: UIImage(named: "icon_csbank"))
                 return value
             }()
       
       lazy var imgSelect : UIImageView = {
           let value = UIImageView(image: UIImage(named: "icon_success"))
           return value
       }()
       required init?(coder: NSCoder) {
           super.init(coder: coder)
       }
       override init(style: UITableViewCell.CellStyle, reuseIdentifier: String?) {
           super .init(style: style, reuseIdentifier: reuseIdentifier)
           setCell()
       }
       private func setCell(){
           
           
        self.addSubview(imgLogo)
        imgLogo.snp.makeConstraints { (make) in
               make.left.equalToSuperview().offset(Adapter(25))
               make.centerY.equalToSuperview()
               make.size.equalTo(CGSize(width: Adapter(129), height: Adapter(38)))
           }
        self.addSubview(imgSelect)
        imgSelect.snp.makeConstraints { (make) in
            make.right.equalToSuperview().offset(-Adapter(25))
            make.centerY.equalToSuperview()
            make.size.equalTo(CGSize(width: Adapter(25), height: Adapter(25)))
        }

    }
       

}
